// 救援项目列表
export const getRescueList = () => uni.$u.http.get('/api/phone/rescue-type/list')

// 获取地址列表
export const getAddressList = () => uni.$u.http.get('/api/detail/detail/list')

// 预约道路救援
export const orderRescue = (params, config = {}) => uni.$u.http.post('/api/phone/rescue', params, config)

// 修改道路救援状态
export const updateRescueStatus = (params, config = {}) => uni.$u.http.put('/api/phone/rescue', params, config)

// 获取订单信息
export const getOrderInfo = (id) => uni.$u.http.get('/api/phone/rescue/' + id)

// 评论订单
export const judgeOrder = (params) => uni.$u.http.post('/api/phone/evaluation', params)

// 获取订单列表
export const getOrderList = () => uni.$u.http.get('/api/phone/rescue/list')